<template>
  <div>
    <el-table :data="exitsGoodsList" style="width: 100%">
      <el-table-column prop="name" label="商品" width="">
        <template slot-scope="scope">
          <el-avatar :size="50" :src="scope.row.img_show" shape="square" />
          <span style="width: 150px">{{ scope.row.name }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="kind_name" label="分类" width="" />
      <el-table-column prop="price" label="价格" width="" />
      <el-table-column prop="inventory" label="库存" width="" />
      <el-table-column prop="sales_number" label="销量" width="" />
      <el-table-column prop="sales" label="总销售额" width="" />
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    exitsGoodsList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
    }
  },
  methods: {
    detail() {
    },
    handleForbid() {
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/el-table.scss";
.el-table /deep/ .cell {
  .detail {
    color: #409eff;
    margin-right: 24px;
    cursor: pointer;
    white-space: nowrap;
  }
  .forbid {
    color: #f56c6c;
    cursor: pointer;
    white-space: nowrap;
  }
}
.el-table /deep/ .cell{
  &:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .el-avatar{
    margin-right: 15px;
  }
}
</style>
